package cn.edu.cug.cs.gtl.docsrv.doc.dao;

import cn.edu.cug.cs.gtl.mybatis.mapper.doc.DocAll;
import cn.edu.cug.cs.gtl.mybatis.mapper.doc.DocItem;
import cn.edu.cug.cs.gtl.protos.TimeValue;

import javax.servlet.http.HttpServletResponse;
import java.io.InputStream;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
import java.util.Map;

public interface DocDao {
    List<DocAll> getDocData() throws Exception;

    boolean addDocData(DocAll docAll) throws Exception;

    boolean deleteDocData(BigDecimal docInternalId) throws Exception;

    boolean updateDocData(DocAll docAll) throws Exception;

    List<DocAll> singleQuery(String column, String value ) throws Exception;

    List<DocAll> dateQuery(TimeValue begin, TimeValue end) throws Exception;

    InputStream downloadDocFile( BigDecimal docInternalId) throws Exception;

}
